package com.alibaba.org.service;

import com.alibaba.org.domain.Shop;
import com.alibaba.basic.service.IBaseService;
import com.alibaba.org.domain.ShopAuditLog;
import com.alibaba.org.dto.ShopDto;

import javax.mail.MessagingException;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Ashe
 * @since 2022-06-04
 */
public interface IShopService extends IBaseService<Shop> {
    /**
     * 店铺入驻
     * @param shop
     */
    void settlement(Shop shop);
    /*
    店铺审核通过
     */
    void pass(ShopAuditLog log) throws MessagingException;
    /*
    店铺审核驳回
     */
    void reject(ShopAuditLog log) throws MessagingException;
    /*
    获取每一个店铺状态的数量
     */
    List<ShopDto> getShopState();
}
